package org.example.backend.dto;

import lombok.Data;

import javax.validation.constraints.NotNull;
import java.time.DayOfWeek;
import java.time.LocalTime;

@Data
public class OpeningHoursDTO {
    private Long id;
    
    @NotNull(message = "星期几不能为空")
    private DayOfWeek dayOfWeek;
    
    @NotNull(message = "开始时间不能为空")
    private LocalTime openTime;
    
    @NotNull(message = "结束时间不能为空")
    private LocalTime closeTime;
    
    private Boolean isOpen;
} 